package examples;

import com.hyperrealm.kiwi.ui.*; //the interesting class

//some standard plumbing
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;


/** A very simple example using the DateChooser. Basically this is
 * enough to get the component on the screen, so that you can resize
 * it, play with it, etc.
 *
 * @author Josh Rehman
 */

public class DateChooserTest
  {

  private DateChooserTest()
    {
    }
  
  public static void main(String[] args)
    {
    KFrame frame = new KFrame("Date Chooser Frame");
    frame.addWindowListener(new WindowAdapter()
        {
        public void windowClosing(WindowEvent e)
          {
          System.exit(0);
          }
        });
    
    //Here is where we create our component.
    
    frame.getMainContainer().add(new DateChooser());
    frame.pack();
    frame.show();
    }
  }
